﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("JDOrderProduct", "JDOrderProduct", new string[] { "ID" })]
    [KnownType(typeof(JDOrderProduct))]
    public class JDOrderProduct : MB.Orm.Common.BaseModel
    {
        public JDOrderProduct()
        {

        }
        //订单号
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("orderId", System.Data.DbType.Int64)]
        public long orderId { get; set; }
        //京东SKUID
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuId", System.Data.DbType.Int64)]
        public long skuId { get; set; }
        //商品的名称+SKU规格
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuName", System.Data.DbType.String)]
        public string skuName { get; set; }
        //商家SKUID
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuIdIsv", System.Data.DbType.String)]
        public string skuIdIsv { get; set; }
        //京东内部商品ID(一个spu下有多个sku比如尺码或颜色不同，spu相同，sku不同)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuSpuId", System.Data.DbType.Int64)]
        public long skuSpuId { get; set; }
        //SKU京东销售价
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuJdPrice", System.Data.DbType.Int64)]
        public long skuJdPrice { get; set; }
        //数量
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuCount", System.Data.DbType.Int16)]
        public int skuCount { get; set; }
        //库存归属（生鲜、冷藏、冷冻、发码）——拆单 (此字段已停止维护)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuStockOwner", System.Data.DbType.Int16)]
        public int skuStockOwner { get; set; }
        //0:默认值非赠品;1:赠品
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("isGift", System.Data.DbType.Int16)]
        public int isGift { get; set; }
        //调整方式(0:默认值，没调整，原订单明细;1:新增;2:删除;3:修改数量)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("adjustMode", System.Data.DbType.Int16)]
        public int adjustMode { get; set; }
        //特殊服务标签(加热、切碎、要餐具、微辣、超辣。。。)(此字段已停止维护)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("specialServiceTag", System.Data.DbType.String)]
        public string specialServiceTag { get; set; }
        //商品upc码
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("upcCode", System.Data.DbType.String)]
        public string upcCode { get; set; }
        //技师id(此字段针对服务类业务)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("artificerId", System.Data.DbType.Int16)]
        public int artificerId { get; set; }
        //技师姓名(此字段针对服务类业务)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("artificerName", System.Data.DbType.String)]
        public string artificerName { get; set; }
        //供应商编码
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("supplyShortCode", System.Data.DbType.String)]
        public string supplyShortCode { get; set; }
        //供应商名称
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("supplyName", System.Data.DbType.String)]
        public string supplyName { get; set; }
        //商品三级类目
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("categoryId", System.Data.DbType.String)]
        public string categoryId { get; set; }
        //门店价
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuStorePrice", System.Data.DbType.Int64)]
        public long skuStorePrice { get; set; }
        //成本价
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuCostPrice", System.Data.DbType.Int64)]
        public long skuCostPrice { get; set; }
        //税率
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("skuTaxRate", System.Data.DbType.String)]
        public string skuTaxRate { get; set; }
        //促销id
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("promotionId", System.Data.DbType.Int64)]
        public long promotionId { get; set; }
    }
}
